package com.coderush.admin.sys.model.dto;

import com.alibaba.fastjson2.JSON;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * PackageName com.stellarforce.admin.sys.model.dto
 *
 * @Author Eason
 * @Version v1.0
 * @ClassName LoginDto
 * @Date 2025/8/18
 * @Description TODO
 */
@Data
public class LoginDto {

    @Schema(description = "登录账号", example = "zhangsan/1587777777", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "登录账号不能为空")
    // @Size(min = 2, max = 50, message = "公司编码长度必须在2-30之间")
    private String loginAccount;

    @Schema(description = "登录密码", example = "666666", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "登录密码不能为空")
    private String password;

    @Schema(description = "登录验证码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "登录验证码不能为空")
    private String verifyCode;

    @Schema(description = "登录验证码Key", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "登录验证码Key不能为空")
    private String verifyCodeKey;

    public static void main(String[] args) {
        LoginDto loginDto = new LoginDto();
        loginDto.setLoginAccount("zhangsan");
        loginDto.setPassword("666666");
        loginDto.setVerifyCode("666666");
        System.out.println(JSON.toJSONString(loginDto));
    }

}